package threads;

public class T09Accede implements Runnable
{
  T09Object obj;

  T09Accede(T09Object obj)
  {
    this.obj = obj;
  }

  public void run()
  {
    if (Thread.currentThread().getName().equals("a"))
      obj.m1();
    if (Thread.currentThread().getName().equals("b"))
      obj.m2();
    if (Thread.currentThread().getName().equals("c"))
      obj.m3();
  }
}
